import Vue from 'vue'
import App from './App.vue'
import router from './router'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI);

import axios from 'axios'
axios.defaults.baseURL="/api";
Vue.prototype.$http = axios

import './assets/css/global.css'

import Moment from 'moment'

Vue.filter('datefmt',function(data,formatStr){
  return Moment(data).format(formatStr);
});

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
